package org.mobicents.data;

import java.io.Serializable;
import java.lang.Long;
import java.lang.String;

/**
 * ID class for entity: UserData
 *
 */ 
public class UserDataPK  implements Serializable {   
   
	         
	private Long id;         
	private String sipURI;
	private static final long serialVersionUID = 1L;

	public UserDataPK() {}

	

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	

	public String getSipURI() {
		return this.sipURI;
	}

	public void setSipURI(String sipURI) {
		this.sipURI = sipURI;
	}
	
   
	/*
	 * @see java.lang.Object#equals(Object)
	 */	
	public boolean equals(Object o) {
		if (o == this) {
			return true;
		}
		if (!(o instanceof UserDataPK)) {
			return false;
		}
		UserDataPK other = (UserDataPK) o;
		return true
			&& (getId() == null ? other.getId() == null : getId().equals(other.getId()))
			&& (getSipURI() == null ? other.getSipURI() == null : getSipURI().equals(other.getSipURI()));
	}
	
	/*	 
	 * @see java.lang.Object#hashCode()
	 */	
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (getId() == null ? 0 : getId().hashCode());
		result = prime * result + (getSipURI() == null ? 0 : getSipURI().hashCode());
		return result;
	}
   
   
}
